/**
 * 项目名称:汽车租赁系统
 *
 * @Author: 夏国倩
 * @Date: 2023/9/12 9:51
 * @Copyright
 */
package itSystemCase2;
public abstract class Car {
    private String licenseplate; //车牌号
    private String brand; //品牌
    private int dailyrent; //日租金

    public abstract float calRent(int days);//计算租金

    public Car() {
    }

    public Car(String licenseplate, String brand, int dailyrent) {
        this.licenseplate = licenseplate;
        this.brand = brand;
        this.dailyrent = dailyrent;
    }

    public String getLicenseplate() {
        return licenseplate;
    }

    public void setLicenseplate(String licenseplate) {
        this.licenseplate = licenseplate;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getDailyrent() {
        return dailyrent;
    }

    public void setDailyrent(int dailyrent) {
        this.dailyrent = dailyrent;
    }
}
